<div class="w700 float_left">
        <div class="bg_tt1">
          <p class="tt p5t">{{$cat.name}}</p>
        </div>
        <div class="p5t p5b line_bt_news2">
          <!-- PANIVIGATION -->
        	{{if $countAllPages > 1}}
	          <div class="pages float_right">
	            <ul>
	              {{if $first}}
	              	<li><a href="?page=1"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1.png"/></a></li>
	              {{/if}}
	              {{if $prevPage}}
	              <li><a href="?page={{$prevPage}}"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1_1.png"/></a></li>
	              {{/if}}
	              {{foreach from=$prevPages item=item}}
	              	<li><a href="?page={{$item}}">{{$item}}</a></li>
	              {{/foreach}}
	              <li class="current"><a href="#">{{$currentPage}}</a></li>
	              
	              {{foreach from=$nextPages item=item}}
                  	<li><a href="?page={{$item}}">{{$item}}</a></li>
                  {{/foreach}}
	              
	              {{if $nextPage}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1_1.png"/></a></li>
	              {{/if}}
	              {{if $last}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1.png"/></a></li>
	              {{/if}}
	            </ul>
	            <div class="cb"></div>
	          </div>
	        <!-- END PANAVIGATION -->
          	{{/if}}
          <div class="cb"></div>
        </div>
        <div class="box_gallery ">
        {{foreach from = $allProducts item=item1}}
        	
          <div class=" p10t p10b line_bt_news2">
         	{{foreach from=$item1 item=product name= sub}}
         	{{if !$smarty.foreach.sub.last}}
            <div class="w345 float_left">
            {{else}}
            <div class="w345 float_right">
            {{/if}}
              <div class="img_bookingnhatrang">
              {{if null != $product.sale_off}}
                <div class="bed">{{l}}Sale off{{/l}} {{$product.sale_off}}</div>
               {{/if}}
                <a href="{{$product.link}}" title="{{$product.main_title}}"><img src="{{$BASE_URL}}{{$product.main_image}}" title="{{$product.main_title}}" alt="{{$product.main_title}}"/></a></div>
              <div class="w180 float_left p5l">
                <p class="color_yellow text_up p5b"><a href="{{$product.link}}" title="{{$product.main_title}}">{{$product.title}}</a></p>
                <p class="color_bule"><strong>{{l}}Price{{/l}}: {{$product.price}} {{$product.price_extension}}</strong></p> {{$product.intro_text}}
				{{if null != $product.sale_off}}
				<p class="bo_d_t p5t m5t">{{l}}From{{/l}} :
                  {{$product.sale_off_start_date}} {{l}}to{{/l}}  {{$product.sale_off_end_date}}</p>
                  {{/if}}
              </div>
            </div>
            {{/foreach}}
            
            <div class="cb"></div>
           
          </div>
          {{/foreach}}
          
          
          
        </div>
        <div class=" p10t">
           <!-- PANIVIGATION -->
        	{{if $countAllPages > 1}}
	          <div class="pages w310 float_right">
	            <ul>
	              {{if $first}}
	              	<li><a href="?page=1"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1.png"/></a></li>
	              {{/if}}
	              {{if $prevPage}}
	              <li><a href="?page={{$prevPage}}"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1_1.png"/></a></li>
	              {{/if}}
	              {{foreach from=$prevPages item=item}}
	              	<li><a href="?page={{$item}}">{{$item}}</a></li>
	              {{/foreach}}
	              <li class="current"><a href="#">{{$currentPage}}</a></li>
	              
	              {{foreach from=$nextPages item=item}}
                  	<li><a href="?page={{$item}}">{{$item}}</a></li>
                  {{/foreach}}
	              
	              {{if $nextPage}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1_1.png"/></a></li>
	              {{/if}}
	              {{if $last}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1.png"/></a></li>
	              {{/if}}
	            </ul>
	            <div class="cb"></div>
	          </div>
	        <!-- END PANAVIGATION -->
          	{{/if}}
        </div>
      </div>